package com.cxyd.modules.wms.controller;

import com.cxyd.common.Utils.ExcelUtils;
import com.cxyd.common.annotation.LogOperation;
import com.cxyd.common.page.PageData;
import com.cxyd.common.utils.Result;
import com.cxyd.modules.log.excel.SysLogWorkExcel;
import com.cxyd.modules.wms.dto.LogCheckDTO;
import com.cxyd.modules.wms.dto.LogWorkDTO;
import com.cxyd.modules.wms.service.LogCheckService;
import com.cxyd.modules.wms.service.LogWorkService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;


/**
 * 日志信息盘点
 *
 */
@RestController
@RequestMapping("wms/log-check")
public class LogCheckController {
    private final LogCheckService logCheckServiceService;

    public LogCheckController(LogCheckService logCheckServiceService) {
        this.logCheckServiceService = logCheckServiceService;
    }

    @GetMapping("page")
    public Result<PageData<LogCheckDTO>> page(@RequestParam Map<String, Object> params){
        PageData<LogCheckDTO> page = logCheckServiceService.page(params);

        return new Result<PageData<LogCheckDTO>>().ok(page);
    }


}
